from dataclasses import dataclass, asdict


@dataclass
class JobInfo:
    name: str
    type: str
    create: str
    command: str = None
    id: str = None
    dlc_params: dict = None

    def dict(self) -> dict:
        return {k: v for k, v in asdict(self).items()}
